<template>
  <p>自己的: {{ car }}</p>
  <p v-show="ziCar">child 给的: {{ ziCar }}</p>
  <br />
  <hr />
  <propChild :car="car" :send-toy="sendToy"></propChild>
</template>
<script setup lang="ts">
import { ref } from "vue";
import propChild from "@/components/sub/prop-child.vue";
let car = ref("car fu");
let ziCar = ref("");

let sendToy = (value: string) => {
  console.log("value", value);
  ziCar.value = value;
};
</script>
<style lang="scss" scoped></style>
